package umn.angrypenguins.monopoly;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class GameView extends Activity implements View.OnClickListener
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        findViewById(R.id.create_button).setOnClickListener(this);
        findViewById(R.id.join_button).setOnClickListener(this);
    }

    public void onClick(View v) {
        if (v.getId() == R.id.create_button) {
            Intent intent = new Intent(this, CreateActivity.class);
            startActivity(intent);
        }
        else if (v.getId() == R.id.join_button) {
            Intent intent = new Intent(this, JoinActivity.class);
            startActivity(intent);
        }
    }
}
